//
//  CTVConfigElement.m
//  Channltv
//
//  Created by Bruno  Keymolen on 19/07/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import "CTVConfigElement.h"


@implementation CTVConfigElement

-(id)init{
	[super init];
	
	m_spinner = FALSE;
	
	return self;
}

-(void) dealloc{ 
	[m_menuName release];	
	[m_configID release];	
	[m_iconName release];
	[m_info release];	
		
	[super dealloc]; //do not forget to transmit to the superclass 
} 



-(NSString*) menuName{
	return m_menuName;
}

-(NSString*) configID{
	return m_configID;
}

-(SEL) function{
	return m_function;
}

-(NSString*) iconName{
	return m_iconName;
}

-(NSString*) info{
	return m_info;
}


-(void) setMenuName:(NSString*)menuName{
	[menuName retain];
	[m_menuName release];
	m_menuName = menuName;
}

-(void) setConfigID:(NSString*)configID{
	[configID retain];
	[m_configID release];
	m_configID = configID;
}

-(void) setFunction:(SEL)function{
	m_function = function;
}

-(void) setIconName:(NSString*)iconName{
	[iconName retain];
	[m_iconName release];
	m_iconName = iconName;
}

-(void) setInfo:(NSString*)info{
	[info retain];
	[m_info release];
	m_info = info;
}

-(void)setSpinner:(BOOL)val{
	m_spinner = val;
}

-(BOOL)spinner{
	return m_spinner;
}

@end
